package com.sfh.alliance.home;

import android.content.Context;
import android.support.annotation.IdRes;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.sfh.alliance.AnimaUtil;
import com.sfh.alliance.R;

/**
 * 功能描述:
 *
 * @date 2017/9/5
 */
public class FootView extends LinearLayout {

    ImageView iv_mk;
    ImageView iv_dj;
    ImageView iv_rw;
    ImageView iv_cj;
    ImageView iv_sc;

    public FootView(Context context) {

        super (context);init();
    }

    public FootView(Context context, @Nullable AttributeSet attrs) {

        super (context, attrs);init();
    }

    public FootView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {

        super (context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        //
        this.inflate (getContext (), R.layout.activity_main_foot, this);

        iv_mk = $ (R.id.iv_mk);
        iv_dj = $ (R.id.iv_dj);
        iv_rw = $ (R.id.iv_rw);
        iv_cj = $ (R.id.iv_cj);
        iv_sc = $ (R.id.iv_sc);

    }

    private <T extends View> T $(@IdRes int resId) {

        return (T) super.findViewById (resId);
    }
}
